import { Button } from 'antd'
import { MouseEventHandler } from 'react'
import './back.scss'
const Back = (props: { inBlog: MouseEventHandler<HTMLElement> }) => {
  const { inBlog } = props
  const goBaidu = () => {
    window.location.href = 'https://www.baidu.com'
  }
  return (
    <div className="back">
      <Button onClick={inBlog} style={{ opacity: 0, cursor: 'default' }}>
        进入
      </Button>
      <div className="back-card">
        <p>你没有权限进入！</p>
        <Button type="primary" size="large" onClick={goBaidu}>
          确认
        </Button>
      </div>
    </div>
  )
}
export default Back
